﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace DomainModel.Entities
{
    public class Comment
    {
        public virtual int CommentID { get; set; }

        [Required(ErrorMessage = "EventID is required or please contact the dev team.")]
        public virtual int EventID { get; set; }

        [Required(ErrorMessage = "UserID is required or please contact the dev team.")]
        public virtual int UserID { get; set; }

        [Required(ErrorMessage = "Content is required.")]
        public virtual string Content { get; set; }

        public virtual DateTime DateCreated { get; set; }

        public virtual User User { get; set; }

        public virtual Event Event { get; set; }


    }
}
